//
//  SRExpressionData.m
//  ExpressionTest
//
//  Created by Charles on 2017/1/1.
//  Copyright © 2017年 Charles. All rights reserved.
//

#import "SRExpressionData.h"
#import "SRExpressionDataTool.h"


@implementation SRExpressionData

- (instancetype)init {
    if (self = [super init]) {
        [self initData];
    }
    return self;
}

- (void)initData {
    //test----lyh
    NSArray * emojiArry = [SRExpressionDataTool ObtainAllEmojiExpression];
   
    NSArray * defaultArry = [SRExpressionDataTool ObtainAllSinaDefaultExpression];
    
    NSArray * lxhArry = [SRExpressionDataTool ObtainAllSinaLxhExpression];
    
    SRExpressionObj * emojiObj = [[SRExpressionObj alloc]init];
    emojiObj.expressionName = @"emoji";
    emojiObj.expressionArray = emojiArry;
    
    SRExpressionObj * defaultObj = [[SRExpressionObj alloc]init];
    defaultObj.expressionName = @"sina";
    defaultObj.expressionArray = defaultArry;
    
    SRExpressionObj * lxhObj = [[SRExpressionObj alloc]init];
    lxhObj.expressionName = @"浪小花";
    lxhObj.expressionArray = lxhArry;
    
    self.expressions = [[NSMutableArray alloc]initWithCapacity:0];
    [self.expressions addObject:emojiObj];
    [self.expressions addObject:defaultObj];
    [self.expressions addObject:lxhObj];
    
    //end
}

@end


@implementation SRExpressionObj

@end
